package erp.education.server.db.entites.finance;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

@Entity
@Table(name = "fin_feegroups")
public class FeeGroup implements Serializable {

	@Id
	@TableGenerator(name = "feegroup_gen", table = "seq_keys", allocationSize = 1)
	@GeneratedValue(strategy = GenerationType.TABLE, generator = "feegroup_gen")
	@Column(name = "groupId")
	private Long groupId;
	@Column(name = "groupName", unique = true, nullable = false)
	private String groupName;
	@Column(name = "groupCode", unique = true, nullable = false)
	private String groupCode;

	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public String getGroupCode() {
		return groupCode;
	}

	public void setGroupCode(String groupCode) {
		this.groupCode = groupCode;
	}

	public Long getGroupId() {
		return groupId;
	}

}
